package com.spa.infrastructure.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.spa.application.dto.PageResult;
import com.spa.application.dto.admin.DouYinOauthDTO;
import com.spa.domain.entity.DouYinOauth;
import com.spa.infrastructure.repository.po.DouyinOauthPO;
import org.mapstruct.Mapper;
import org.mapstruct.MapperConfig;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

@Mapper
@MapperConfig(unmappedTargetPolicy = ReportingPolicy.WARN)
public interface DouYinOauthMapperStruct {

    DouYinOauthMapperStruct INSTANCE = Mappers.getMapper(DouYinOauthMapperStruct.class);


    DouYinOauth po2Entity(DouyinOauthPO po);

    Page<DouYinOauth> po2Entity4Page(Page<DouyinOauthPO> page);

    PageResult<DouYinOauthDTO> entity2Dto4Page(Page<DouYinOauth> page);

}
